      <div class="main-content">
        <!--<div class="content-banner"><img src="<?=$this->applicationUrl()?>/public/images/visu-best-price.jpg" width="710" height="239" alt="" /><span class="best-price"><img src="images/best-price.png" width="111" height="129" alt="Best Price" /></span></div>-->
        <h3>Chi tiết sản phẩm</h3>
        <div class="inner-content">
        	<p>chi tiet > chi tiet > chi tiet </p>
        	<div class="main-image">
        		<?php
					$product = $this->currentProduct;					
					
					if ($product['main_image'] == null || !file_exists('public/data/products/' . $product['main_image'])) 
					{
				?>
				<img id="mainImage" src="<?=$this->applicationUrl()?>/public/images/nothumb.jpg" width="520" height="300"  />.
				<?php
					} else {
				?>
					
					<img id="mainImage" src="<?=$this->applicationUrl()?>/public/data/products/<?php echo $product['main_image'];?>" width="520" height="300" />
        				
				<?php
					}
				?>
        	</div>
			<div class="sub-image">
				<ul>
					<?php
					for($index=0; $index < 3; $index++) {						
							if ($this->imageList[$index]['img_link'] == null || !file_exists('public/data/products/' . $this->imageList[$index]['img_link'])) {											
					?>
					<li><img id="<?php echo('sub_image_' . $index); ?>" src="<?=$this->applicationUrl()?>/public/images/nothumb.jpg" width="120" height="92" onclick="changeImage(this);"  /></li>
					<?php
							} else {
					?>
						<li><img id="<?php echo('sub_image_' . $index);?>" src="<?=$this->applicationUrl()?>/public/data/products/<?php echo $this->imageList[$index]['img_link']; ?>" width="120" height="92" alt="No image" onclick="changeImage(this);" /></li>
					<?php
							}
						}
					?>
				</ul>
			</div>
			<p class="pro-detail-name"><?php echo $product['name'];?></p>
			<p class="pro-detail-p">Gia ban: <?php echo $product['price'];?> </p>
			<p class="pro-detail-p">Tình trạng: 
				<?php 
					if($product['quantity'] > 0) {
						echo "Còn hàng";
					} else {
						echo "Tạm hết hàng";
					}					
				?>				
			</p>
			<form name="mosForm" method="post" action="<?= $this->baseUrl('/member/add-product/') ?>">
			<input type="hidden" value="<?php echo $product['product_id'] ?>" name="product_id" id="product_id" /> 
		    <p class="pro-detail-quantity"><label>Số lượng đặt hàng</label><input type="text" name="quantity" id="quantity" /></p>
			<p><input id="btnSubmit" class="submit-order" type="submit" name="btnSubmit" value="Đặt hàng" /></p>
			</form>
			<p class="pro-detail-info">Thông số kỹ thuật</p>		
			<p><?php echo $product['description'];?></p>			     
        </div>
      </div>